package com.trf.fm1;

/**
 * @author 小小唐
 * @Date 2022/9/17-星期六-17:49
 *
 * if语句的执行实例
 */
public class SortABC {
    public static void main(String[] args) {
        int a = 60;
        int b = 30;
        int c = 70;
        int t = 0;

        if (a>b){
            t = a;
            a = b;
            b = t;
        }
        if (a>c){
            t = a;
            a = c;
            c = t;
        }
        if (b>c){
            t = b;
            b = c;
            c = t;
        }


        System.out.println("排序之后：a="+a+",b="+b+",c="+c);
    }
}
